<?php

namespace Biz\service\advertisement\apiModule;


class DesignerHomeBanner extends SingleBanner
{

    public function extCheckActive($v, $extInput)
    {
        $uid = $extInput['uid'] ?? '';
        $config = $v['ext']['uid'] ?? '';
        $config = explode(',', $config);
        return strlen($uid) && in_array($uid, $config);
    }

    public function formatAdmListExtInfo(&$v, $map)
    {
        $v['ext'] = $map[$v['id']] ?? [];
        if (!empty($v['ext'])) $v['ext']['uid'] = explode(',', $v['ext']['uid']);
    }



}